package IteratorAndComposite;

import IteratorAndComposite.IteratorWaitess.Waitess;
import IteratorAndComposite.entry.CafeMenu;
import IteratorAndComposite.entry.DinerMenu;
import IteratorAndComposite.entry.PancakeHouseMenu;
import org.junit.Test;

/**
 * @Author: pengzx
 * @Description:
 * @Date: 9:56 2017/9/19
 * @Modified by: 1.0
 */
public class Demo {
    @Test
    public void waitessTest(){
        PancakeHouseMenu pancakeHouseMenu = new PancakeHouseMenu();
        DinerMenu dinerMenu = new DinerMenu();
        CafeMenu cafeMenu = new CafeMenu();
        Waitess waitess = new Waitess(dinerMenu, pancakeHouseMenu,cafeMenu);
        waitess.printMenu();
        System.out.println("hello world!");

    }
}
